﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HYRElectric.EquipmentPlace
{
	public class SwitchFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem is FamilyInstance && (elem.Category.Id.IntegerValue == -2008087 || elem.Category.Id.IntegerValue == -2001060);
		}

		public bool AllowReference(Reference refer, XYZ pos)
		{
			return false;
		}
	}
}
